/**
 * 
 */
package pits.dao;

import pits.form.AddTakenCompanyInfoForm;
import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * @author ltd
 * 
 */
public class AddTakenCompanyInfoDAOTest extends TestCase {

	/**
	 * Test method for
	 * {@link pits.dao.AddTakenCompanyInfoDAO#addDepartexp(int, pits.form.AddTakenCompanyInfoForm)}
	 * .
	 */
	public void testAddDepartexp1() {
		AddTakenCompanyInfoDAO dao = new AddTakenCompanyInfoDAO();
		AddTakenCompanyInfoForm form = new AddTakenCompanyInfoForm();
		form.setTxtDepartment("department_23");
		form.setTxtStartDate("01-01-2010");
		form.setTxtEndDate("12-06-2010");
		form.setTxtRole("role_2");
		form.setTxtDescription("abc");
		int rs = dao.addDepartexp(1, form).size();
		Assert.assertEquals(2, rs);
	}
}
